import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/get_department_tree_entity.g.dart';

export 'package:enterprise_v6_app/generated/json/get_department_tree_entity.g.dart';

@JsonSerializable()
class GetDepartmentTreeEntity {
	GetDepartmentTreeEntity();

	factory GetDepartmentTreeEntity.fromJson(Map<String, dynamic> json) => $GetDepartmentTreeEntityFromJson(json);
	String? id;
	String? pid;
	String? departmentName;
	List<GetDepartmentTreeEntity>? children;
  /// 是否展开
  bool? isExpand = false;

	Map<String, dynamic> toJson() => $GetDepartmentTreeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
